package com.metagurukul.metaspace.models.beans;


import java.sql.Timestamp;

/**
 * @author ritesh
 * created date : 5/10/2012
 */
public class Comment {
	private int commentId = -1;
	private String comment = null;
	private Timestamp commentTimestamp = null;
	private int userId = -1;
	private int statusId = -1;
	
	/**
	 * @return
	 */
	public int getCommentId() {
		return commentId;
	}
	
	/**
	 * @param commentId
	 */
	public void setCommentId(int commentId) {
		this.commentId = commentId;
	}
	
	/**
	 * @return
	 */
	public String getComment() {
		return comment;
	}
	
	/**
	 * @param comment
	 */
	public void setComment(String comment) {
		if (this.comment != null && 400 < this.comment.length()){
			throw new StringIndexOutOfBoundsException("Comment size too long");
		}
		this.comment = comment;
	}
	
	/**
	 * @return
	 */
	public Timestamp getCommentTimestamp() {
		return commentTimestamp;
	}
	
	/**
	 * @param commentTimestamp
	 */
	public void setCommentTimestamp(Timestamp commentTimestamp) {
		this.commentTimestamp = commentTimestamp;
	}
	
	/**
	 * @return
	 */
	public int getUserId() {
		return userId;
	}
	
	/**
	 * @param userId
	 */
	public void setUserId(int userId) {
		this.userId = userId;
	}
	
	/**
	 * @return
	 */
	public int getStatusId() {
		return statusId;
	}
	
	/**
	 * @param statusId
	 */
	public void setStatusId(int statusId) {
		this.statusId = statusId;
	}
	
}
